package com.reef.entity;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
//@SuppressWarnings("serial")
@Data
@AllArgsConstructor
@NoArgsConstructor

@Entity
@Table(name = "bookborrew_view")//设置《图书表》表名
@JsonIgnoreProperties(value = {"hibernateLazyInitializer","handler"})//懒加载
public class Bookborrew_view implements Serializable{
	
		@Id //设置主键
		private int bookId ;//图书id
		private String name;//书名
		private String author;//作者
		private String publish;//出版社
		private String isbn;//书号
		private String introduction;//简介
		private String language;//语言
		private String price;//价格
		private String pubDate;//发布日期
		private int classId;//图书类别编号
		private int number;//数量
		private int lendnum;//被借阅次数
		private String position;//位置
		private Integer res1;
		private Integer res2;
		private Integer res3;
		private String res4;
		private String res5;
		private String res6;
		private String class_name;
}
